import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false
//引入 伸缩盒子
import "amfe-flexible"
//公共样式 
import "@/assets/css/reset.css"

//引入less
import less from 'less'
Vue.use(less)

//引入vant移动端
import vant, { Loading } from "vant"
import "vant/lib/index.css"
Vue.use(vant)

//设置全局通道
Vue.filter("setColor",function(num){
  return `￥${num.toFixed(2)}元`
})

//引入懒加载
import lazy  from "vue-lazyload";
Vue.use(lazy,{
  loading:require("@/assets/loding.gif")
})


//引入 router
import router from "@/router/index.js"
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
